// 用户的信息

import 'package:flutter/material.dart';
import 'package:sharing/model/simple_user_info.dart';

class UserInfoPage extends StatefulWidget {
  UserInfoPage({@required this.user}) :assert(user !=null);
  final SimpleUserInfo user ;
  @override
  _UserInfoPageState createState() => _UserInfoPageState();
}

class _UserInfoPageState extends State<UserInfoPage> {
  @override
  Widget build(BuildContext context) {
    print("user ${widget.user.name}");
    return Material(
      child: Scaffold(
        appBar: AppBar(

          title: Text('${widget.user.name}',),
          elevation: 0.0,
        ),
      ),
    );
  }
}
